<?php

class TestController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        $guestbook = new Default_Model_TestGuestbookMapper();
        $guest = $guestbook->fetchAlldata();
        $this->view->hello = $guest;
        $this->view->render('test/index.phtml');
        
    }
      public function signAction() {

        $request = $this->getRequest();
        $form = new Application_Form_Guestbook();

        if ($this->getRequest()->isPost()) {
            if ($form->isValid($request->getPost())) {
                //$guestbook = new Application_Model_TestGuestbookMapper();
                //$guestbook->save($form->getValues());
                return $this->_helper->redirector('index');
            }
        }
        $this->view->form = $form;
    }
   
  

}



